package com.zj.myrule;

import com.netflix.client.config.IClientConfig;
import com.netflix.loadbalancer.AbstractLoadBalancerRule;
import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import com.netflix.loadbalancer.Server;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ZjRule {

//    @Bean
//    public IRule myRule() {
//        return new RandomRule();
//    }

    @Bean
    public IRule myRule() {
        return new ZjRandomRule(); //自定义的
    }
}
